<?php
/**
@自动生成 BY Kupe框架 www.kupebank.com
#date : 2017-10-25 15:05:25
#path : app/model/user.class.php
*/
class userModel extends db
{
	function  checkUser($login)
	{
		return $this->where("`login`='{$login}'")->find();
	}
	function getMaxOrder()
	{
		$rt = $this
			->field("MAX(`porder`) as max")
			->find();
		return $rt['max'];
	}
	//删除用户的逻辑处理
	function dodelete($id)
	{
		$this->pk($id)->delete();
		return true;
	}
}